<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

 

<script type="text/javascript">   
$(function(){
	$("#roleList").jqGrid({
		jsonReader:{
			repeatitems: false
		},
		caption:"角色列表",
		url:'<%=path%>/role.getGridData.action',
		datatype: "json",
		mtype: "post",
		height: 350,
		autowidth: true,
		colNames:['名称','描述'],
		colModel:[
			{name:'code',index:'code', width:100,editable:true},
			{name:'name',index:'name', width:200,editable:true}
		],
		pager: '#rolePager',
		sortname: 'code',
		sortorder: "asc",
		multiselect: true
	});

});
	</script>  

	<body>
	<table id="roleList"></table>
<div id="rolePager"></div>
	</body>
